package ynu.lcy.service;

import org.springframework.transaction.annotation.Transactional;
import ynu.lcy.dto.food.AddFoodRequestDTO;
import ynu.lcy.entity.Business;
import ynu.lcy.entity.Food;

import java.util.List;

/**
 * 商品服务
 * @author 梁超映
 * */
public interface FoodService {

    /**
     * 根据商家id获取商品
     * @param id
     * @return
     * */
    public List<Food> getByBusinessId(Long id);

    /**
     * 商品汇总
     * */
    public List<Food> getAll();

    /**
     * 添加商品
     */
    public Food addFood(AddFoodRequestDTO dto);


    /**
     * 删除商品
     *
     * @param id id
     * @return boolean
     */
    public Boolean delete(Long id);

}
